﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.Domain
{
    public class User
    {

        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int UserId { get; set; }
        public string UserName { get; set; }
        public string UserPwd { get; set; }


        /// <summary>
        /// 错误次数
        /// </summary>
        public int LoginErrorNum { get; set; } = 0;

        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsDel { get; set; } = 0;
    }
}
